package jsyf.oa.ientity;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

/**
 * Created by Lenovo on 2017/12/8.
 */
public abstract class BaseEntity implements IBaseEntity {
    protected String id;
    protected String updateUserId;
    protected Integer delFlag;
    protected Date createTime;
    protected Date updateTime;

    @Override
    public JSONObject getJSONObjectUpdateUserId() {
        JSONObject obj = new JSONObject();
        obj.put("updateUserId", this.getUpdateUserId());
        return obj;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    @Override
    public void setUpdateUserId(String updateUserId){
        this.updateUserId = updateUserId;
    }
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    @Override
    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public JSONObject getJSONObjectId() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        return obj;
    }

    @Override
    public String getViewName() {
        return null;
    }
}
